
package com.bei_en.teacher.management.persistence.dao.system;

import java.util.List;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import com.bei_en.teacher.management.model.system.bean.SystemRole;
import com.bei_en.teacher.management.model.system.condition.SystemRoleCondition;
import com.bei_en.teacher.management.persistence.dao.BaseDao;

/**
 * 后台角色
 * @author Longqs
 * @date 2016-6-15 14:55:59
 */
@Repository
public interface SystemRoleDao extends BaseDao<SystemRole, Integer> {

    Integer findNumberByCondition(SystemRoleCondition vo);

    List<SystemRole> findPageBreakByCondition(SystemRoleCondition vo, RowBounds rb);

    /**
     * 返回上次插入的id，用于merge
     * @return
     */
    Integer findLastInsertedId();
}
